<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>餐厨管理</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="all"
	th:href="@{/plugins/bootstrap/bootstrap.min.css}" />

<link rel="stylesheet" type="text/css"
	th:href="@{/plugins/jQuery/jquery.mobile-1.4.5.min.css}" />
<script th:src="@{/plugins/jQuery/jquery-1.10.2.min.js}"></script>
<script th:src="@{/plugins/jQuery/jquery.mobile-1.4.5.min.js}"></script>
<script th:src="@{/js/ajaxfileupload/ajaxfileupload.js}"></script>
<script th:src="@{/plugins/bootstrap/bootstrap.min.js}"></script>
<script th:src="@{/plugins/jQuery/moment/moment.min.js}"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&amp;ak=ESUICaohNGpKKOAx3d2SOzDxuZ2WUMlX&amp;services=&amp;t=20180323171755"></script>
	
<link rel="stylesheet" type="text/css" href="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css" />
<link rel="stylesheet" type="text/css" href="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/esri/css/esri.css" />
<script type="text/javascript" src="http://39.107.125.44/arcgis_js_api/library/3.16/3.16/init.js"></script>	

<link rel="stylesheet" type="text/css" media="all" th:href="@{/plugins/font-awesome-4.7.0/css/font-awesome.min.css}" />
<link rel="stylesheet" th:href="@{/mobile/common.css}" />
<link rel="stylesheet" th:href="@{/mobile/reset.css}" />
<link rel="stylesheet" th:href="@{/mobile/listView.css}" />
<style type="text/css">
.settingsValue {
	width:100px;
	display:block;
	word-break: break-all;
	word-wrap: break-word;
	display:inline;
}

.settingsValue-ta{
	width:100%;
	display:block;
	word-break: break-all;
	word-wrap: break-word;
}

.ui-select{
	margin: 0;
}
.ui-input-text{
	border-width: 0px;
}

.ui-input-text, .ui-input-search{
	margin: 0;
}
body, input, select, textarea, button, .ui-btn{
	font-size: 13px;
}

.ui-btn-icon-notext, .ui-header button.ui-btn.ui-btn-icon-notext, .ui-footer button.ui-btn.ui-btn-icon-notext{
	width: 0px;
	height: 0px;
}

</style>

</head>
<body>
	<div data-role="page" id="pageone" style="background-color: #F5F5F5;">

		<div data-role="header" data-position="fixed" data-tap-toggle="true">
			<span class="fa fa-angle-left goBack"></span>
			<h1>收集数据填报</h1>
		</div>
		<input type="hidden" id="identify" th:value="${bussinessId}" />
		<div data-role="main" style="background-color: #F5F5F5;" >
			<input id="lng" name="lng" type="hidden" />
			<input id="lat" name="lat" type="hidden" />
			
			<input id="lng2" name="lng2" type="hidden" />
			<input id="lat2" name="lat2" type="hidden" />
			
			<form method="post" id="saveKitchenWasteForm">
			<ul data-role="listview">
				<li>
					<div class="row">
						<div class="col-xs-6 settingsTitle"><span>废弃物</span></div>
						<div class="col-xs-5 ">
							<div class="settingsValue"><input data-clear-btn="false" type="number" name="waste" id="waste" /></div>
						</div>
						<div class="col-xs-1" style="margin: 0;padding-left: 0px">kg</div>
					</div>
				</li>
				<li>
					<div class="row">
						<div class="col-xs-6 settingsTitle"><span>废弃油</span></div>
						<div class="col-xs-5 ">
							<div class="settingsValue"><input data-clear-btn="true" type="number" name="wasteOil" id="wasteOil" /></div>
						</div>
						<div class="col-xs-1" style="margin: 0;padding-left: 0px">kg</div>
					</div>
				</li>
				<li>
					<div class="row">
						<div class="col-xs-6 settingsTitle"><span>备注</span></div>
					</div>
				</li>
				<li style="padding-top: 0; padding-bottom: 0; padding-left: 1em;padding-right: 1em;">
					<div class="row">
						<div class="col-xs-12 ">
							<div class="settingsValue-ta">
								<textarea data-clear-btn="true" style="resize: none;" type="text" name="remark" id="remark" placeholder="请填写备注情况"></textarea>
							</div>
						</div>
					</div>
				</li>
				<li>
					<div class="row">
						<div class="col-xs-4 settingsTitle"><span>现场拍照</span></div>
					</div>
				</li>
				<li>
					<div class="row">
						<div class="col-xs-12 ">
							<div class="settingsValue">
							<a href="javascript: ;" id="fileclick"><img src="/wcsi/img/upload.png" id="avatart" style="width:70px;height: 70px"/></a>
							<input type="file" id="file_upload" name="file" style="display: none;opacity: 0;" />
							</div>
						</div>
					</div>
				</li>
			</ul>
			<table data-role="table" width="100%" data-mode="columntoggle:none" data-column-btn-theme="e" data-column-popup-theme="c" id="myTable"
				style="background: #FFFFFF;border-top-width: 1px;border-top-color: #ddd;border-top-style: solid;">
				<tbody>
					<tr id="html">
						<td style=" width: 60px;padding-left: 10px !important;">
						<a href="#mapPage" data-transition="slide" class="gotomap">
						<img src="/wcsi/img/mapShow.png" style="width: 40px;height: 40px;"/>
						</a>
						</td>
						<td id="locationDes"
							style="color: #999999; border-bottom: none !important;"></td>
					</tr>
					<tr id="android" style="display: none;">
						<!-- <td style="width: 110px;padding-left: 23px !important;" class="gotomap">定位信息</td> -->
						<td style=" width: 60px;padding-left: 10px !important;">
						<a href="#mapPage" data-transition="slide" class="gotomap">
						<img src="/wcsi/img/mapShow.png" style="width: 40px;height: 40px;"/>
						</a>
						</td>
						<td id="locationDes2"
							style="color: #999999; border-bottom: none !important;"></td>
					</tr>
				</tbody>
			</table>
			</form>
		</div>
		<div data-role="footer" data-position="fixed" data-theme="a">
			<center>
				<input id="saveBtn" type="submit" data-inline="false"
					style="background: #F8643F !important; border: 1px solid; border-color:#FA977E; border-radius: 6px !important; color: #FFFFFF; width: 98%; height: 38px;font-size:16px;"
					value="提交"></input>

			</center>
		</div>

		<div data-role="popup" id="popupView" data-position-to="window"
			class="ui-content" data-theme="a" data-overlay-theme="a"
			data-dismissible="false">
			<div data-role="content">
				<img th:src="@{/img/loading.gif}" />
			</div>
		</div>
	</div>
	
	<!-- 地图信息 -->
	<div data-role="page" id="mapPage" style='background-color: #F5F5F5; background-size: cover'>
		<div data-role="header" data-tap-toggle="true" data-theme="a">
			<span><a href="#pageone" data-transition="slide" data-direction="reverse" class="pageBack" ><span class="fa fa-angle-left headleft"></span> </a></span>
			<h1>地图信息</h1>
		</div>
		<div data-role="content" style="background: #FFFFFF;height: 100%;">
		<div id="eventmap" ></div>
			<div style="width: 100%;height: 50px;">
				<table data-role="table" width="100%" data-mode="columntoggle:none" style="margin-top: 5px;"
					data-column-btn-theme="e" data-column-popup-theme="c" id="myTable">
					<tbody>
						<tr>
							<td style="width: 110px;padding-left: 23px !important;">定位信息</td>
							<td id="mapLocationDes" style="color: #999999; border-bottom: none !important;word-wrap: break-word"></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	
	<script th:src="@{/js/mapcoordinate.js}"></script>
	<script th:src="@{/mobile/event/map.js}"></script>
	<script th:src="@{/mobile/common.js}"></script>
	<script th:src="@{/mobile/kitchenwaste/saveKitchenWaste.js}"></script>
	<script th:inline="javascript">
		window.rootPath= /*[[${#httpServletRequest.getContextPath()}]]*/
	</script>
</body>
</html>